package com.tomcov.client.place;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.user.client.ui.AcceptsOneWidget;

public class MessageInPlace extends Place{
	
	private String MessageInName;

    public MessageInPlace(String token) {
        this.MessageInName = token;
    }

    public String getMessageInName() {
        return MessageInName;
    }


    public static class Tokenizer implements PlaceTokenizer<MessageInPlace> {
        @Override
        public String getToken(MessageInPlace place) {
            return place.getMessageInName();
        }

        @Override
        public MessageInPlace getPlace(String token) {
            return new MessageInPlace(token);
        }
    }
}